<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>注册</h1>
<!--action 后面写的是servlet的拦截路径  -->
<form  action="RegisterServlet">
用户名：<input type="text" id="uuuname" name="name" onBlur="checkName()"><br>
密码：&nbsp &nbsp &nbsp<input type="text" name="pwd"><br>
<input type="submit">
</form>
<a href="BseaLogin.jsp">已经有账号？直接登录</a>

<script type="text/javascript">
function checkName(){
	var uname=document.getElementById("uuuname");
	console.log(uname);
	alert("用户名输入框失去了焦点，触发了失焦事情"+uname);
}

</script>
</body>
</html>